"""
name = "李健奇"
for x in name:
    print(x)

# for循环，统计字母a的个数
count = 0
name = "itheima is a brand of itcast"
for x in name:
    if x == 'a':
        count += 1
print(f"itheima is a brand of itcast中，有{count}个字母a")
"""

# 数据可视化：员工工资发放
money = 10000
for i in range(1,21):
    import random
    score = random.randint(1,10)
    if score <5:
        print(f"员工{i}，绩效分{score}，绩效不达标，没有工资")
        continue
    if money >= 1000:
        money -= 1000
        print(f"员工{i}，绩效分{score}，绩效达标，发放工资1000元，公司账户余额为：{money}")
    else:
        print("公司没钱了，下个月再说")
        break